package org.wakagios.learn.util;

import cn.hutool.core.util.CharUtil;

public class L_StrUtil {

    public static boolean isBlank(CharSequence str) {
        int length;

        if (str == null || (length = str.length()) == 0) {
            return true;
        }

        for (int i = 0; i < length; i++) {
            if (!CharUtil.isBlankChar(str.charAt(i))) {
                return false;
            }
        }

        return true;
    }
}
